<!--{include biz_header}-->
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>Voucher Serial:</h2>
				</div>
				<div class="sect" style="padding:0 10px;">
					<form method="get">
					<label>Sản phẩm</label>
					<select name="team_id" style="width: 140px;font-size: 15px;">
						<option value=0> --Chọn deal--</option>
					<!--{loop $teams_select $index $one1}-->
						<option value="{$one1['id']}">${sub_str($one1['title'],100)}</option>
					<!--{/loop}-->
					</select>
					Serial <input style="font-size: 15px;"  type="text" name="serial" class="h-input number" value="{$team_id}" >
					Từ ngày <input style="font-size: 15px;" type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="pbday" value="{$pbday}" /> đến ngày <input style="font-size: 15px;" type="text" class="h-input" onFocus="WdatePicker({isShowClear:false,readOnly:true})" name="peday" value="{$peday}" />
					Tình trạng 
					<select name="status">
						<option value=0>...</option>
						<option value=1>Tất cả</option>
						<option value=2>Đã sử dụng</option>
						<option value=3>Chưa sử dụng</option>
						<option value=4>Đã hủy</option>
					</select><br>
						<p style="margin:5px 0;"><input type="submit" value="select" class="formbutton"  style="padding:1px 6px;"/>
					<form>
				</div>
                <div class="sect">
                <h2>We have {$count_} voucher serial - <a href="{$_SERER['PHP_SELF']}?action=download">Download List</a></h2>
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table" width="98%">
					<tr class="forum_title_tr"><th width="40">#</th><th width="300px">Sản phẩm</th><th width="50">Khách hàng</th><th width="40" nowrap>Serial</th><th width="50" nowrap>Ngày</th><th>Comment</th><th width="200px">Tình trạng</th></tr>
					<!--{loop $voucher $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td>{$one['id']}</td>
						<td><a href="../team.php?id={$one['team_id']}" target="_blank">${sub_str($teams[$one['team_id']]['title'],70)}</a></td>
						<td>{$user[$one['user_id']]['email']}<br>{$user[$one['user_id']]['realname']}</td>
						<td><!--{if ($one['istatus']==2)}--><b style="text-decoration: line-through;color:red;">{$one['serial']}</b><!--{else}--><b style="font-size: 15px;color: green;">{$one['serial']}</b><!--{/if}--></td>
						<td>${date('d-m-Y',$one['create_date'])}</td>
						<td><a href="../comment.html?id={$one['team_id']}" target="_blank">Comment</a></td>
						<td><!--{if ($one['iused']==1 && $one['istatus']!=2)}--><a style="font-size: 20px" href="manage.php?id={$one['id']}" class="ajaxlink" ask="Do you want set used?">Chuyển qua đã dùng</a><!--{else if ($one['istatus']!=1)}--><b style="font-size: 20px;color:red">Đã hủy</b><!--{else}--><b style="font-size: 20px;color:green">Đã dùng</b><!--{/if}--></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
